home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
WebSites
/
MailingLists
/
AMOSLIST.0599
/
000097_nobody_Wed May 19 05:54:06 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-06-01
|
2KB
Received: from onelist.com (pop.onelist.com [209.207.164.159])
by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id FAA10435
for <mcox4@osf1.gmu.edu>; Wed, 19 May 1999 05:54:06 -0400 (EDT)
Received: (qmail 21594 invoked by alias); 19 May 1999 09:53:56 -0000
Received: (qmail 21574 invoked from network); 19 May 1999 09:53:55 -0000
Received: from unknown (HELO saintolaves.demon.co.uk) (195.99.45.82) by pop.onelist.com with SMTP; 19 May 1999 09:53:55 -0000
Date: Wed, 19 May 1999 10:58:33 EST
Message-Id: <199905191058.AA33554740@saintolaves.demon.co.uk>
From: <cheila@saintolaves.demon.co.uk>
X-Sender: <cheila@saintolaves.demon.co.uk>
To: amos-list@onelist.com
X-Mailer: <IMail v4.06>
Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
Delivered-To: mailing list amos-list@onelist.com
Precedence: bulk
List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
Reply-to: amos-list@onelist.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Re: [amos-list] ?Math bug
Status: O
X-Status:
From: <cheila@saintolaves.demon.co.uk>
Hi
Computers use powers of two, so 1/2 can be exactly represented
but 1/3 can't (just like 1/7 can't with decimal fractions).
A solution is to use arbitrary precision rational numbers
(using long bitstrings, but very slow and awkward)
but this isn't really necessary - the order of operations
can make a big difference with floats. Always try to avoid
finding the difference of two similarly sized numbers, or
adding a small number to a much larger one.
Hope this helps
Claude
------------------------------------------------------------------------
ONElist: where real people with real interests get connected.
http://www.onelist.com
Join a new list today!
------------------------------------------------------------------------
Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html